﻿using System;

namespace Accumulation.Controls.Paginations {
    /// <summary>
    /// 分页控件事件指针
    /// </summary>
    /// <param name="sender">分页控件对象</param>
    /// <param name="e">分页控件参数</param>
    public delegate void PageEventHandler(object sender, PaginationsEventArgs e);
    /// <summary>
    /// 分页控件参数类
    /// </summary>
    public class PaginationsEventArgs : EventArgs {
        /// <summary>
        /// 当前页
        /// </summary>
        public int Page { get; set; }
        /// <summary>
        /// 当前翻页
        /// </summary>
        public int PageNum { get; set; }
        /// <summary>
        /// 构造函数
        /// </summary>
        public PaginationsEventArgs() {
            this.Page = 1;
            this.PageNum = 1;
        }
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="page">当前页</param>
        /// <param name="pageNum">当前翻页</param>
        public PaginationsEventArgs(int page, int pageNum) {
            this.Page = page;
            this.PageNum = PageNum;
        }
    }
}